<%@ taglib prefix="stripes"
	uri="http://stripes.sourceforge.net/stripes-dynattr.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<jsp:useBean id="roundCtrl" scope="page" class="controller.RoundCtrl" />

<stripes:layout-render name="/admin/master-page.jsp">

	<stripes:layout-component name="head">

	</stripes:layout-component>

	<stripes:layout-component name="content">

		<div class="mycontent">

			<div class="container">
				<div class="row">
					<h1 class="text-center">
						<b>Upload <i class="glyphicon glyphicon-arrow-right"></i>
							Bootstrap <i class="glyphicon glyphicon-arrow-right"></i> Start
							Round 1
						</b>
					</h1>

					<stripes:form action="/admin-3a6a4a8a/manual-bootstrap"
						method="post" enctype="multipart-form/data"
						onsubmit="$('#bootstrapBtn').prop('disabled', true); $('#loading').css('display','inline');">

						<div class="input-group">
							<input type="text" class="form-control input-lg" disabled /><span
								class="input-group-btn"> <span
								class="btn btn-lg btn-primary btn-file"><i
									class="glyphicon glyphicon-folder-open"></i> Choose zip file <stripes:file
										name="bootstrap-file" /> </span>
							</span>
						</div>

						<br />
						<br />

						<button id="bootstrapBtn" class="btn btn-lg btn-block btn-success"
							name="bootstrap" type="submit" onclick="">
							<h4>
								<b> Let's Go! </b><i
									class="glyphicon glyphicon-circle-arrow-right arrow-right"></i>
							</h4>
						</button>

						<br />
					</stripes:form>

					<center>
						<img id="loading" style="display: none;"
							src="${pageContext.request.contextPath}/assets/images/loading.gif" />
					</center>

				</div>
			</div>

			<div class="container">
				<div class="text-center">

					<h1 class="text-center">
						<b>Manage Bidding Round</b>
					</h1>
					<p>
						<b>Current Round Number: <span class="label label-default">#${roundCtrl.currentRound.roundNo
								}</span> Current Round Status: <span class="label ${roundCtrl.currentRound.isRoundOpen() ? "label-success" : "label-danger" }">${roundCtrl.currentRound.isRoundOpen() ? "Open" : "Closed" }</span></b>
					</p>
					<br /> <a class="btn btn-success"
						href="${pageContext.request.contextPath}/admin-3a6a4a8a/manual-round/start/">
						<h4>
							<i class="glyphicon glyphicon-play"></i> <b> Start Round </b>
						</h4>
					</a> <a class="btn btn-danger"
						href="${pageContext.request.contextPath}/admin-3a6a4a8a/manual-round/stop/">
						<h4>
							<i class="glyphicon glyphicon-stop"></i> <b> Stop Round </b>
						</h4>
					</a>


				</div>
			</div>

		</div>

	</stripes:layout-component>
</stripes:layout-render>